package cn.wolfcode.transfer.qo;

import cn.wolfcode.transfer.util.BusinessConsumptionUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class BusinessConsumptionQueryObject extends QueryObject {
    private Integer selectNumber = BusinessConsumptionUtil.门店.getNumber();
    private Integer ByBusinessId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date BeginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date EndDate;
    private Integer ByStatus;
    private Boolean ByAppointment;

    public String getSelect() {
        String s = BusinessConsumptionUtil.forBusinessConsumptionValue(this.selectNumber);
        return s;
    }

    public Integer getByBusinessId() {
        return ByBusinessId;
    }

    public void setByBusinessId(Integer byBusinessId) {
        ByBusinessId = byBusinessId;
    }

    public Date getBeginDate() {
        return BeginDate;
    }

    public void setBeginDate(Date beginDate) {
        BeginDate = beginDate;
    }

    public Date getEndDate() {
        return EndDate;
    }

    public void setEndDate(Date endDate) {
        EndDate = endDate;
    }

    public Integer getByStatus() {
        return ByStatus;
    }

    public void setByStatus(Integer byStatus) {
        ByStatus = byStatus;
    }

    public Boolean getByAppointment() {
        return ByAppointment;
    }

    public void setByAppointment(Boolean byAppointment) {
        ByAppointment = byAppointment;
    }

    public Integer getSelectNumber() {
        return selectNumber;
    }

    public void setSelectNumber(Integer selectNumber) {
        this.selectNumber = selectNumber;
    }
}
